package com.jiawa.wiki.req;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * @author wangbo
 */
@Setter
@Getter
@ToString
public class CategorySaveReq {
    private Long id;

    @NotNull(message = "分类的名称不可以为空")
    private String name;
    @NotNull(message = "分类的排序不可以为空")
    private Integer sort;
    private String parent;

}